import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextLine()){
            String date = in.nextLine();
            String year = date.substring(0,4);
            String month = date.substring(4,6);
            String day = date.substring(6);
            System.out.println("year="+year);
            System.out.println("month="+month);
            System.out.println("day="+day);
        }
    }
}
